package com.castudio.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castudio.Common.RespPageEntity;
import com.castudio.Entity.Activity;
import com.castudio.Entity.User;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 小陈同学
 * @since 2023-01-19
 */
public interface ActivityService extends IService<Activity> {

    RespPageEntity getAllActivities(Integer page, Integer size, String title);

    void save(String fileUrl, String title, String profile, String author, String categories,
              String content);

    void saveImage(String image);

    IPage<Activity> getPage(Integer currentPage, Integer PageSize, Activity activity);

    IPage<Activity> getPage(Integer currentPage, Integer pageSize);
}
